- d
- The delegate to execute asynchronously.
- state
- The state information to pass to the thread.
Visual Basic (Declaration) | |
---|---|
Overloads Public Shared Function Execute(Of T)( _ ByVal d As Action(Of T), _ ByVal state As T _ ) As AsyncResult |
Visual Basic (Usage) | Copy Code |
---|---|
Dim d As Action(Of T) Dim state As T Dim value As AsyncResult value = AsyncHelper.Execute(Of T)(d, state) |
C++/CLI | |
---|---|
public: static AsyncResult^ Executegeneric<typename T> ( Action<T^>^ d, T^ state ) |
Parameters
- d
- The delegate to execute asynchronously.
- state
- The state information to pass to the thread.
Type Parameters
- T
- The type of parameter this thread uses.
Return Value
The asynchronous result.Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7